use "data\influenza_border_town_panel.dta",replace

reghdfe log_deaths_town indian_dm1918  post if distance<=25, absorb(pair ) vce(cluster pairs_did)
sum `e(depvar)' if e(sample)
outreg2 using "output\table3",  $outreg_settings  adds(Mean of dep. var, `r(mean)')   replace
reghdfe log_deaths_town indian_dm1918 indian_dm1918_post post if distance<=25, absorb(pair ) vce(cluster pairs_did)
sum `e(depvar)' if e(sample)
outreg2 using "output\table3",  $outreg_settings  adds(Mean of dep. var, `r(mean)')   
reghdfe log_deaths_town indian_dm1918_post if distance<=25, absorb(i.cid#i.pair i.pair#i.year) vce(cluster pairs_did)
sum `e(depvar)' if e(sample)
outreg2 using "output\table3",  $outreg_settings  adds(Mean of dep. var, `r(mean)')   
reghdfe log_deaths_town indian_dm1918_post if sample1==1, absorb(i.cid#i.pair i.pair#i.year) vce(cluster pairs_did)
sum `e(depvar)' if e(sample)
outreg2 using "output\table3",  $outreg_settings  adds(Mean of dep. var, `r(mean)')   
reghdfe log_deaths_town indian_dm1918_post if sample2==1, absorb(i.cid#i.pair i.pair#i.year) vce(cluster pairs_did)
sum `e(depvar)' if e(sample)
outreg2 using "output\table3",  $outreg_settings  adds(Mean of dep. var, `r(mean)')   
